revision:
The <mark> tag defines text that should be marked or highlighted. Most browsers will display the <mark> element with the following default values: "background-color: yellow"; "color: black";. This can be changed using CSS background-color property.
Typical use cases for <mark> include:
when used in a quotation (<q>) or block quote (<blockquote>), it generally indicates text which is of special interest but is not marked in the original source material, or material which needs special scrutiny even though the original author didn't think it was of particular importance. Think of this like using a highlighter pen in a book to mark passages that you find of interest.
Otherwise, <mark> indicates a portion of the document's content which is likely to be relevant to the user's current activity. This might be used, for example, to indicate the words that matched a search operation.
Don't use <mark> for syntax highlighting purposes; instead, use the <span> element with appropriate CSS applied to it.
<mark> . . write your content here . . </mark>
Do not forget to buy milk today.
code: <p class="example">Do not forget to buy <mark>milk</mark> today.</p>
It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire. During the battle, Rebel spies managed to steal secret plans to the Empire’s ultimate weapon, the DEATH STAR, an armored space station with enough power to destroy an entire planet.
coding: <blockquote class="example"> It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire. During the battle, <mark>Rebel spies managed to steal secret plans</mark> to the Empire’s ultimate weapon, the DEATH STAR, an armored space station with enough power to destroy an entire planet. </blockquote>
The Math test is on Friday.
code: <p class="example">The Math test is on <mark style="background-color: red;">Friday</mark>.</p>